#include "CFootballBall.h"


CFootballBall::CFootballBall(void)
	: m_pCurrent(NULL)
	, m_pPrevious(NULL)
{
}


CFootballBall::~CFootballBall(void)
{
}

bool CFootballBall::SetBall(CFootballPlayer* _Player)
{
	if(_Player != m_pCurrent && m_pPrevious != _Player) {
		m_pPrevious = m_pCurrent;
		m_pCurrent  = _Player;
		return true;
	} else {
		return false;
	}
}

CFootballPlayer* CFootballBall::GetBall()
{
	return m_pCurrent;
}